package com.eling.elcms.travel.service.impl;

import com.eling.elcms.core.service.impl.GenericManagerImpl;
import com.eling.elcms.travel.dao.IBasePriceDao;
import com.eling.elcms.travel.model.BasePrice;
import com.eling.elcms.travel.service.IBasePriceManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BasePriceManagerImpl extends GenericManagerImpl<BasePrice, Long> implements IBasePriceManager{

	IBasePriceDao BasePriceDao;

	@Autowired
	public void setBasePriceDao(IBasePriceDao BasePriceDao) {
		this.dao = BasePriceDao;
		this.BasePriceDao = BasePriceDao;
	}

	@Override
	public BasePrice getPrice() {
		return getAll().get(0);
	}
}
